﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace wlog.Shell.IO
{
    public class UsageCommand : Command
    {
        public override void Setup(string[] args)
        {
            CommandArgs = args;
            this.CommnadName = CommandController.INVALIDCOMMAND;

            base.CreateTask(() =>
            {
                Results.Add("Sorry, not found a suitable command to execute!!");
                Results.WriteLine("");
                Results.Add("Please see , manuals and for instant help, type 'help' ");
                for (int i = 0; i < args.Length; i++)
                {
                    Results.Add(string.Format("{0}\tThe parameter at {1} is '{2}' not known at this time", i, i, args[i]));
                }
                Results.Add("");
                Results.WriteLine("Please notify developer at {0} about it. ", ProgramUtils.GetEmail());
            });
        }
    }
}
